<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
<META http-equiv="Content-Type" content="text/html; CHARSET=UTF-8">
<?php
session_start();
ob_start();
if (!(isset($_SESSION["userid"])))
{
	header("Location: index.php");
}
if(isset($_POST["sid"])) { $idPoem = $_POST["sid"]; }
if(isset($_POST["title"])) { $title = $_POST["title"]; }
if(isset($_POST["content"])) { $content = $_POST["content"]; }
if(isset($_POST["music"])) { $music = $_POST["music"]; }
if(isset($_POST["lyrics"])) { $lyrics = $_POST["lyrics"]; }
if(isset($_POST["youtubeCode"])) { $youtubeCode = $_POST["youtubeCode"]; }
if(isset($_POST["category"])) { $category = $_POST["category"]; }
if(isset($_POST["album"])) { $album = $_POST["album"]; }

?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>詩歌-主頁</title>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<link rel="stylesheet" href="../style.css" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->

<script type="text/javascript" src="../script.js"></script>
<style type="text/css">
.art-post .layout-item-0 {
	margin-top: 13px;
	margin-bottom: 13px;
}

.art-post .layout-item-1 {
	color: #242424;
	background: url(/poem/images/e4edc.png) top left no-repeat #FFFFFF;
	padding: 0px;
}

.art-post .layout-item-2 {
	padding: 10px;
}

.ie7 .art-post .art-layout-cell {
	border: none !important;
	padding: 0 !important;
}

.ie6 .art-post .art-layout-cell {
	border: none !important;
	padding: 0 !important;
}
</style>
</head>
<body>
	<div id="art-main">
		<div class="cleared reset-box"></div>
		<div class="art-header">
			<div class="art-header-position">
				<div class="art-header-wrapper">
					<div class="cleared reset-box"></div>
					<div class="art-header-inner">
						<div class="art-headerobject">耶 和 華 是 我 的 力 量 、 是 我 的 盾 牌 ． 我 心 裡 倚 靠 他 、 就 得 幫 助 ． 所 以 我 心 中 歡 樂 ． 我 必 用 詩 歌 頌 讚 他 。(詩 28:7)</div>
						<div class="art-logo">
							<h1 class="art-logo-name">
							</h1>
							<h2 class="art-logo-text">詩 歌 庫</h2>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="cleared reset-box"></div>
		<div class="art-bar art-nav">
			<div class="art-nav-outer">
				<div class="art-nav-wrapper">
					<div class="art-nav-inner">
						<ul class="art-hmenu">
							<li><a href="/poem/index.php">主頁</a></li>
							<li><a href="/poem/categorylist.php">詩歌分類</a></li>
							<li><a href="/poem/albumlist.php">詩歌專輯</a></li>
							<li><a href="/poem/advancedsearch.php">進階搜尋</a></li>
							<li><a href="/poem/contactus.php">聯絡我們</a></li>
							<li>
								<div class="search-region">
                  <form action="/poem/song.php" method="get" onsubmit="checkSongId();">
                    <input type="hidden" id="sid" name="sid"/>
                    <input id="autocomplete" size="20" name="query" style="color: rgb(0, 0, 0);" />
                    <input id="searchIcon" type="submit" title="搜尋" value="搜尋" />
                  </form>
               	</div>
    					</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div class="cleared reset-box"></div>
		<div class="art-box art-sheet">
			<div class="art-box-body art-sheet-body">
				<form action="/poem/admin/songSave.php" method="post">
				<!-- `title`, `content`, `music`, `lyrics`, `youtubeCode`, category -->
						<table border="0">
						<tr>
      					<td>詩歌ID : </td>
      					<td>
      						<input type="text" title="sid" name="sid" id="sid" value="<?php print $idPoem;?>" size=80  />
      					</td>
    					</tr>
							<tr>
      					<td>詩歌 : </td>
      					<td>
      						<input type="text" title="title" name="title" id="title" value="<?php print $title;?>" size=80  />
      					</td>
    					</tr>
    					<tr>
      					<td>專輯 : </td>
      					<td>
      						<input type="text" title="album" name="album" id="album" value="<?php print $album;?>" size=80  />
      					</td>
    					</tr>
    					<tr>
      					<td>作曲 : </td>
      					<td>
      						<input type="text" title="music" name="music" id="music" value="<?php print $music;?>" size=80  />
      					</td>
    					</tr>
    					<tr>
      					<td>作詞 : </td>
      					<td>
      						<input type="text" title="lyrics" name="lyrics" id="lyrics" value="<?php print $lyrics;?>" size=80  />
      					</td>
    					</tr>
    					<tr>
      					<td style="vertical-align:top;">歌詞 :</td>
      					<td>
    							<textarea rows="20" cols="80" name="content"><?php print $content; ?></textarea>
    						</td>
    					</tr>
    					<tr>
      					<td>Youtube Code : </td>
      					<td>
      						<input type="text" title="youtubeCode" name="youtubeCode" id="youtubeCode" value="<?php print $youtubeCode;?>" size=80  />
      					</td>
    					</tr>
    					<tr>
      					<td>分類 : </td>
      					<td>
      						<input type="text" title="category" name="category" id="category" value="<?php print $category;?>" size=80  />
      					</td>
    					</tr>
    					<tr>
      					<td colspan="2" style="text-align: right;">
      						<input type="submit" value="儲存"/>
      					</td>
    					</tr>
						</table>
				</form>
			</div>
		</div>
		<?php require_once '../footer.php';?>
		<div class="cleared"></div>
	</div>
</body>
</html>
